#ifndef unigame_StringManager_h
#define unigame_StringManager_h

#include "config/Def.h"

namespace unigame
{
    class StringManager
    {
    public:
        static int32 utf8String(char* src, int32 len, uint16* dest);
        static int32 uniFindChar(uint16 ch, const uint16* str, int32 start, int32 end = -1);
        static int32 uniCompare(const uint16* str1, const uint16* str2);
        static int32 uniCompare(const uint16* str1, const char* str2);
        static int32 uniFindNextNotBlank(const uint16* str, int32 start, int32 end = -1);
		static void uniTrimStr(const uint16* str, int32* start, int32* end);
        static int32 uniLength(const uint16* str);
        
        static int32 utf8String(char* src, wchar_t* dest);
    };
}

#endif